class Class{
    constructor(number){
        this.number=number;        
    }
    getDisplayName(){
        return `Class ${this.number}`;
    }
    appendMember(Student){
        Student.klass=this;
    }
    assignLeader(Student){
        if(Student.klass==this){
            if(this.number==Student.klass.number){
                this.leader=Student;
            }
        }
        else{
            console.log("It is not one of us.");
        }
    }
}
module.exports=Class;

